import Vue from 'vue'
import Vuex from 'vuex'
import user from './module/user'
import app from './module/app'
import site from './module/site'

Vue.use(Vuex)

export default new Vuex.Store({
    state: {
        showLoading: false
    },
    mutations: {
        // 控制loading显示隐藏
        updateLoadingStatus(state, payload) {
            state.showLoading = payload.showLoading
        }
    },
    actions: {},
    modules: {
      user,
      site,
      app
    }
})
